package com.leyou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leyou.pojo.SpecGroup;
import com.leyou.pojo.SpecParam;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author jshstart
 * @creat 2020-12-11 12:55
 */
public interface SpecParamMapper extends BaseMapper<SpecParam> {
    @Select("select * from tb_spec_param where category_id=#{categoryId} and group_id=#{groupId}")
    List<SpecParam> queryByCategoryIdByGroupId(@Param("groupId") Long groupId,@Param("categoryId") Long categoryId);
}
